def bienvenida = 'Hola Groovy!'
assert bienvenida.startsWith('Hola')

assert bienvenida.getAt(0) == 'H'
assert bienvenida[0] == 'H'

assert bienvenida.indexOf('Groovy') >= 0
assert bienvenida.contains('Groovy')

assert bienvenida[5..10] == 'Groovy'

assert bienvenida.count('o') == 3

assert 'x'.padLeft(3)   == '  x'
assert 'x'.padRight(3)  == 'x  '
assert 'x'.center(3)    == ' x '
assert 'x'*3            == 'xxx'

def stringBuf = ' Holaaaaaa Este es un stringBuffer'
stringBuf <<= ',Te va'
println stringBuf

stringBuf[4..9] = 'a'
println stringBuf


